package structure.decorator;

/**
 * @author yeyangtao
 * @date 2020/6/23 16:09
 */
public class RedShapeDecorator extends ShapeDecorator{
    public RedShapeDecorator(Shape shapeDecorator) {
        super(shapeDecorator);
    }

    @Override
    public void draw() {
        shapeDecorator.draw();
        setReadBorder(shapeDecorator);
    }

    private void setReadBorder(Shape shapeDecorator) {
        System.out.println("边框颜色: 红色");
    }
}
